<include file="Public:header" />
			<include file="Public:menu" />
			<div id="right">
				<div class="top"></div>
				<div class="app_right_banner">
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">我的相册 -- {$album['name']}</p>
						<p class = "app_module_back"><a href="__APP__/user">返回我的空间</a></p>
					</div>
					<?php 
						}else{
					 ?>
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">{$userInfo['username']}的相册 -- {$album['name']}</p>
						<p class = "app_module_back"><a href="__APP__/homes/{$userInfo['id']}">查看{$userInfo['username']}的空间</a></p>
					</div>
					<?php } ?>
				</div>
				<div class="app_right_menu">
					<div class="arm_1">
						相册查看
					</div>
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
					<div class="arm_2">
						<a href="__APP__/photos/{$userInfo['id']}">我的相册</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__">好友的相册</a>
					</div>
					<div class="arm_2">
						<a href="__URL__/createalbum">创建相册</a>
					</div>
					<div class="arm_2">
						<a href="__URL__/uploadphoto/albumid/{.id}">上传相片</a>					
					</div>
					<?php 
						}else{
					 ?>
						<div class="arm_2">
							<a href="__APP__/photos/{$userInfo['id']}">{$userInfo['username']}的相册</a>					
						</div>
					<?php } ?>
				</div>
				<div class="app_right_count">
					当前相册:<span class="arc_title">{$album['name']}(共{$album['photonum']}张)</span> | <a href="__APP__/photos/{$userInfo['id']}">返回列表</a>
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
					| <a href="__URL__/uploadphoto/albumid/{.id}">上传更多相片</a> | <a href="__URL__/editalbum/id/{.id}">编辑相册</a> 
					<?php } ?>
				</div>
				<div>
					<?php 
						if($album['photonum'] == 0 && $album['userid'] == $myId){
					 ?>
						<div class="norecord"><a href="__URL__/uploadphoto/albumid/{.id}">此相册没有任何相片，现在就上传新相片</a></div>
					<?php }else{ ?>
					<div class="photo_list">
						<ul>
						<volist name="photolist" id="photo" empty="空相册,没有任何相片.">
							<li>
							<a href="__APP__/showphoto/{$photo['id']}#showphoto"><img src="__PUBLIC__/Uploads/photo/small/{$photo['photoname']}"/></a>
							</li>
						</volist>
						</ul>
					</div>
					<div class="photo_list">{$page}</div>
					<?php } ?>
				</div>
				<div class="share">
					<a class="addshare" rel="facebox" href="__APP__/share/addshare/g/album/id/{.id}"><img src="../Public/images/share.gif"/></a>
				</div>
			</div>
<include file="Public:footer" />